python argparse ignore unrecognized arguments

51

python argparse ignore unrecognized arguments -

# replace
args = parser.parse_args()
# with
args, unknown = parser.parse_known_args()

Comments

Submit
0 Comments